<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <body>
        <ui:composition template="./template.xhtml">
            <ui:define name="navigation">
                <ul>
                    <li><h:link value="#{msg.backToLogin}" outcome="index"/></li>
                </ul>
            </ui:define>
            <ui:define name="content">  
                <div id="main">
                    <h2>#{msg.register}</h2>
                    <p>#{msg.registerText}</p>
                        <form action="#" method="post" id="sendeRegistrierung">
                            <h3>#{msg.personalData}</h3>

                        <div class="formblock">
                            <fieldset>
                                <div>
                                    <h:outputLabel class="Float" for="firstname" value="#{msg.firstName}"/>
                                    <h:inputText label="firstname" value="###">
                                        <f:validateRegex pattern="[A-Za-z]+"/>
                                    </h:inputText>
                                    
                                    <!-- <input type="text" id="firstname" name="firstname" /> --> 
                                </div>
                                <div>
                                    <h:outputLabel class="Float" for="lastname" value="#{msg.lastName}" />
                                    <h:inputText label="lastname" value="###">
                                        <f:validateRegex pattern="[A-Za-z]+"/>
                                    </h:inputText>
                                    <!-- <input type="text" id="lastname" name="lastname" /> -->
                                </div>
                                <div>
                                    <label class="Float" for="dateofbirth">#{msg.birthday}</label>
                                    <input type="text" id="dateofbirth" name="dateofbirth" />
                                </div>
                                <div>
                                    <h:outputLabel class="Float" for="sex" value="#{msg.gender}" />
                                    <h:selectOneMenu id="sex" value="null">
                                        <f:selectItem itemValue="w" itemLabel="#{msg.female}" />
                                        <f:selectItem itemValue="m" itemLabel="#{msg.male}" />
                                    </h:selectOneMenu>                                   
                                </div>
                            </fieldset>
                        </div>

                        <h3><span xml:lang="en">Login</span> Daten </h3>
                        <div class="formblock">
                            <fieldset>
                                <div>
                                    <h:outputLabel class="Float" for="username" value="#{msg.username}" />
                                    <h:inputText label="username" value="###">
                                        <f:validateRegex pattern="[A-Za-z]+"/>
                                    </h:inputText>                                   
                                </div>

                                <div>
                                    <h:outputLabel class="Float" for="password" value="#{msg.password}" /> 
                                    <h:inputSecret label="password" id="password" value="####">
                                        <f:validateLength minimum="3"/>
                                        <f:validateRegex pattern="[A-Za-z0-9]*([A-Za-z][0-9]|[0-9][A-Za-z])[A-Za-z0-9]*"/>
                                    </h:inputSecret>
                                </div>
                            </fieldset>
                        </div>
                        <div id="buttons">
                            <input type="submit" value="#{msg.register}" accesskey="r" />
                        </div>
                        </form>
                </div>
            </ui:define>
        </ui:composition>
    </body>
</html>
